package org.px;
import java.awt.Font;

import javax.swing.SwingUtilities;
import javax.swing.UIManager;

import org.px.gui.LoginFrame;

public class LeaveManagementSystem {
    public static void main(String[] args) {
        // 设置全局字体和界面缩放
        setupGlobalFont();
        SwingUtilities.invokeLater(() -> {
            new LoginFrame().setVisible(true);
        });
    }

    private static void setupGlobalFont() {
        try {
            Font font = new Font("微软雅黑", Font.PLAIN, 24);
            UIManager.put("Button.font", font);
            UIManager.put("Label.font", font);
            UIManager.put("TextField.font", font);
            UIManager.put("ComboBox.font", font);
            UIManager.put("Menu.font", font);
            UIManager.put("MenuItem.font", font);
            UIManager.put("Table.font", font);
            UIManager.put("TextArea.font", font);
            UIManager.put("PasswordField.font", font);
        } catch (Exception e) {
            e.printStackTrace();
        }
    }
}
